package com.taxshare.api.controller;

import com.taxshare.api.service.BlackService;
import com.taxshare.api.view.dto.BlackSyncDTO;
import com.taxshare.api.view.dto.HumanResourcesDTO;
import com.taxshare.response.beans.Response;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
 *@ClassName: SyncBlackController
 *@Description:(销项)
 *@author: hjh
 *@date:
 */
@RestController
@RequestMapping("/manager")
public class SyncBlackController {

    @Autowired
    BlackService blackService;

    @PostMapping("/black/sync")
    @ApiOperation(value = "同步黑名单", notes = "同步黑名单")
    public Response syncBlack(@RequestBody BlackSyncDTO blackSyncDTO) {
        return blackService.syncBlack(blackSyncDTO);
    }

    @ApiOperation(value = "获取人力资源信息信息", notes = "获取人力资源信息")
    @PostMapping("/getResources")
    public Response getResources(@RequestBody HumanResourcesDTO humanResourcesDTO) {
        return blackService.getResources(humanResourcesDTO);
    }
}
